package leetcode.code470;

public class Solution extends Solution470 {

	@Override
	public int rand10() {
		int num = 0;
		do {
			int r1 = rand7();
			int r2 = rand7();
			num = r1 + (r2 - 1) * 7;
		} while (num > 40);
		return (num - 1) % 10 + 1;
	}

	public static void main(String[] args) {
		Solution so = new Solution();
//		int[] array = new int[11];
//		for (int i = 0; i < 10000; i++) {
//			array[(so.rand10())]++;
//		}
//		for (int i = 1; i < 11; i++) {
//			System.out.println(i + " " + array[i]);
//		}

		for (int i = 1; i < 11; i++) {
			System.out.println((i % 2 == 0) + " " + ((i & 1) == 0));
		}

	}

}
